//
//  InDetailsTableViewCell.m
//  DA_V
//
//  Created by 周季阳 on 15/5/7.
//  Copyright (c) 2015年 zhouhai. All rights reserved.
//

#import "InDetailsTableViewCell.h"
#import "InterFace.h"
#import "UIViewAdditions.h"
@implementation InDetailsTableViewCell
@synthesize zNumber,zName;
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        
        zName = [[UILabel alloc]initWithFrame:CGRectMake(10, 0, SCREEN_WIDTH/2, 30)];
        zName.textColor = [UIColor blackColor];
        zName.textAlignment = NSTextAlignmentCenter;
        zName.font = [UIFont systemFontOfSize:14];
        [self addSubview:zName];
        
        
        zNumber = [[UILabel alloc]initWithFrame:CGRectMake(SCREEN_WIDTH/2, 0, SCREEN_WIDTH/2-10, 30)];
        zNumber.textColor = [UIColor blackColor];
        zNumber.textAlignment = NSTextAlignmentCenter;
        zNumber.font = [UIFont systemFontOfSize:14];
        [self addSubview:zNumber];
    
        [self createrOffLineUI:CGRectMake(10, 29, SCREEN_WIDTH-20, 0.5)];
        [self createrOffLineUI:CGRectMake(10, 0, 0.5, 30)];
        [self createrOffLineUI:CGRectMake(SCREEN_WIDTH/2, 0, 0.5, 30)];
        [self createrOffLineUI:CGRectMake(SCREEN_WIDTH-10, 0, 0.5, 30)];
        
    }
    return self;
}

-(void)createrOffLineUI:(CGRect)rect{
    UIView *lines = [[UIView alloc] initWithFrame:rect];
    lines.backgroundColor = [UIColor colorWithRed:179/255.0 green:179/255.0 blue:179/255.0 alpha:1];
    [self addSubview:lines];
}
@end
